//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<IRenderState.h>
///	@path	~/src/graphics/
///	@date	2008/09/15
///	@desc	.

#pragma once

#include "xeres.h"

#include "graphics/IDeviceResource.h"

namespace xeres {

	/*! 
		\class	IRenderState
		\brief	Capture & apply render state cache.
	*/
	class IRenderState : public IDeviceResource
	{
	public:

		/// \ctor
		IRenderState( void );

		/// \dtor
		virtual ~IRenderState( void );

		DECL_IOBJECT_INTERFACE( IRenderState , IDeviceResource );

	public:

		/// \brief	Determine if render state needs capture again.
		virtual bool RequireCapture( void ) = 0;

		/// \brief	Capture current render state.
		virtual bool Capture( void ) = 0;

		/// \brief	Apply render state to current.
		virtual bool Apply( void ) = 0;
	};

} // namespace xeres
